c program to find x power y using for loop